package cst.a110lyj.fragmenttest110lyj.service;

import java.util.List;

import cst.a110lyj.fragmenttest110lyj.bean.ArticleBean;
import cst.a110lyj.fragmenttest110lyj.bean.UserBean;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Header;
import retrofit2.http.Path;
import retrofit2.http.Query;

/**
 * Created by admin on 2017/6/8/008.
 */

public interface ResService {
    @GET("api.php/login")
    Call<UserBean> login(@Query("username") String username,
                         @Query("password") String password);
    @GET("api.php/lists/mod/{mod}")
    Call<List<ArticleBean>> getVideoList(@Path("mod") String mod,
                                    @Query("page") int page,
                                    @Header("SessionID") String sessionID);
    @GET("api.php/lists/mod/{mod}")
    Call<List<ArticleBean>> getArticleList(@Path("mod") String mod,
                                      @Query("page") int page,
                                      @Header("SessionID") String sessionID);
    @GET("api.php/reg")
    Call<String> reg(@Query("username") String username,
                     @Query("password") String password,@Query("tel") String tel);

    @GET("api.php/lists/mod/{mod}")
      Call<List<ArticleBean>> getTcaseList(@Path("mod") String mod,
                                         @Query("page") int page,
                                         @Header("SessionID") String sessionID);
    @GET("api.php/lists/mod/{mod}")
    Call<List<ArticleBean>> getTwareList(@Path("mod") String mod,
                                       @Query("page") int page,
                                       @Header("SessionID") String sessionID);
    @GET("api.php/lists/mod/{mod}")
    Call<List<ArticleBean>> getProject(@Path("mod") String mod,
                                         @Query("page") int page,
                                         @Header("SessionID") String sessionID);
    @GET("api.php/listspecial/mod/{mod}")
    Call<List<ArticleBean>> getVideo2(@Path("mod")String mod, @Query("page") int page,
                                           @Header("SessionID") String sessionID);

}
